package com.itheima.demo05.InnerClassThread;

public class Demo01InnerClassThread {
    public static void main(String[] args) {
        new Thread("嘿嘿嘿") {
            @Override
            public void run() {
                for (int i = 0; i < 20; i++) {
                    System.out.println(Thread.currentThread().getName() + "->" + i);
                }
            }
        }.start();
        Runnable r = new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 20; i++) {
                    System.out.println(Thread.currentThread().getName() + "->" + i);
                }
            }
        };

        new Thread(r).start();
    }
}
